$(function () {
    topicComment()
    topiclist ()
})
function topicComment () {
    $.ajax({
        method: 'GET',
        url: "/api/comment/count",
        data: {
            valueId: 314,
            typeId:1,
        },
        success: function (res) {
            // console.log(res);
            // console.log(res.errmsg);
            // var htmlStr = template('tpl-liuyan',res.data)
            // $('.b').html(htmlStr)
        }
    })
}

function topiclist () {
    $.ajax({
        method: 'GET',
        url: "/api/comment/list",
        data: {
            valueId: 314,
            typeId: 1,
            size: 70,
            page: 2,
            showType:0
        },
        success: function (res) {
            // console.log(res);
            // console.log(res.data.data);
            var htmlStr = template('tpl-liuyan',res.data)
            $('.b').html(htmlStr)
        
        }

    })
}